# -*- coding: utf-8 -*-
# @version        : 1.0
# @Create Time    : 2021/10/19 15:47
# @File           : urls.py
# @IDE            : PyCharm
# @desc           : 路由文件

from apps.base.auth.views import app as dc_auth_app
from apps.base.mock.auth.views import app as dc_mock_auth_app
from apps.base.mock.dispatch.views import app as dc_mock_dispatch_app
from apps.base.mock.check.views import app as dc_mock_check_app

from apps.base.record.views import app as dc_record_app
from apps.base.system.views import app as dc_system_app

from apps.dispatch.taskpool.views import app as dc_task_app
from apps.dispatch.feedback.views import app as dc_feedback_app
from apps.dispatch.assignment.views import app as dc_assignment_app
from apps.dispatch.needplan.views import app as dc_needplan_app
from apps.dispatch.need.views import app as dc_need_app
from apps.dispatch.team.views import app as dc_team_app
from apps.dispatch.rule.views import app as dc_rule_app
from apps.base.external.views import app as dc_dispatch_extern_app

from apps.check.vendor.views import app as dc_vendor_app
from apps.check.feature.views import app as dc_feature_app
from apps.check.param.views import app as dc_param_app
from apps.check.sample.views import app as dc_sample_app
from apps.check.female.views import app as dc_female_app
from apps.check.qar.views import app as dc_qar_app
from apps.check.asr.views import app as dc_asr_app
from apps.check.order.views import app as dc_order_app
from apps.check.rebut.views import app as dc_rebut_app
from apps.check.plan.views import app as dc_plan_app
from apps.check.task.views import app as dc_check_task_app


# 引入应用中的路由
urlpatterns = [
    {"ApiRouter": dc_auth_app, "prefix": "/auth", "tags": ["系统认证"]},
    {"ApiRouter": dc_mock_auth_app, "prefix": "/mock/auth", "tags": ["模拟第三方鉴权接口，用于对接"]},
    {"ApiRouter": dc_mock_dispatch_app, "prefix": "/mock/dispatch", "tags": ["模拟调度组件交互接口，用于对接"]},
    {"ApiRouter": dc_mock_check_app, "prefix": "/mock/check", "tags": ["模拟质检组件交互接口，用于对接"]},

    {"ApiRouter": dc_record_app, "prefix": "/record", "tags": ["操作记录"]},
    {"ApiRouter": dc_system_app, "prefix": "", "tags": ["系统操作"]},

    {"ApiRouter": dc_task_app, "prefix": "/dispatch", "tags": ["生产任务池"]},
    {"ApiRouter": dc_feedback_app, "prefix": "/dispatch", "tags": ["任务问题反馈"]},
    {"ApiRouter": dc_assignment_app, "prefix": "/dispatch", "tags": ["任务派工"]},
    {"ApiRouter": dc_needplan_app, "prefix": "/dispatch", "tags": ["辅料需求计划"]},
    {"ApiRouter": dc_rule_app, "prefix": "/dispatch", "tags": ["辅料文本解析规则"]},
    {"ApiRouter": dc_need_app, "prefix": "/dispatch", "tags": ["辅料需求"]},
    {"ApiRouter": dc_team_app, "prefix": "/dispatch", "tags": ["外协班组"]},
    {"ApiRouter": dc_dispatch_extern_app, "prefix": "/dispatch", "tags": ["测试外部接口"]},

    {"ApiRouter": dc_vendor_app, "prefix": "/check", "tags": ["供应商管理"]},
    {"ApiRouter": dc_feature_app, "prefix": "/check", "tags": ["ASR特征库"]},
    {"ApiRouter": dc_param_app, "prefix": "/check", "tags": ["管理参数"]},
    {"ApiRouter": dc_sample_app, "prefix": "/check", "tags": ["规范抽样"]},
    {"ApiRouter": dc_female_app, "prefix": "/check", "tags": ["QAR母本"]},
    {"ApiRouter": dc_qar_app, "prefix": "/check", "tags": ["QAR表单"]},
    {"ApiRouter": dc_asr_app, "prefix": "/check", "tags": ["ASR表单"]},
    {"ApiRouter": dc_order_app, "prefix": "/check", "tags": ["委托试验表单"]},
    {"ApiRouter": dc_rebut_app, "prefix": "/check", "tags": ["驳回历史"]},
    {"ApiRouter": dc_plan_app, "prefix": "/check", "tags": ["计划待办"]},
    {"ApiRouter": dc_check_task_app, "prefix": "/check", "tags": ["QAR生成任务"]},
]
